﻿using System;
using ProxyViewModel;

namespace AutoViewModel {
	// this class is here just to support someone who started using the library with AutoViewModel
	public class AutoViewModel : ProxyViewModelFactory {
		/// <summary>
		/// Creates and observable ViewModel.
		/// </summary>
		/// <typeparam name="T"></typeparam>
		/// <param name="constructorParameters">ViewModel type</param>
		/// <returns>ViewModel observable instance</returns>
		public static T CreateAutoViewModel<T>(params object[] constructorParameters) where T : class {
			return ProxyViewModelFactory.CreateProxyViewModel<T>(constructorParameters);
		}
	}
}
